package me.henrydhc.naiveeconomy.connector;

import me.henrydhc.naiveeconomy.account.EcoAccount;

import java.sql.SQLException;
import java.util.UUID;

public interface Connector {

    /**
     * Get player account from database
     * @param playerID Player UUID
     * @return Player account instance
     */
    public EcoAccount getAccount(UUID playerID) throws Exception;

    /**
     * Stores player account into database
     * @param account Player account
     */
    public void saveAccount(EcoAccount account) throws SQLException;

    /**
     * Close database connection
     */
    public void close() throws Exception;

    

}
